var n = 100;
function foo() {
  console.log(n);
}

function bar() {
  var n = 200;

  console.log(n); // 200
  foo(); //100
}

bar();
